/*
 * Creation : 19/09/2013
 */
/**
 * 
 */
package com.japcatalog.bo.dao;

import java.util.Collection;

import com.japcatalog.bo.AutoPart;

/**
 * The Interface AutoPartDao.
 * 
 * @author Fernando Ariel Perelli
 */
public interface AutoPartDao {

	/**
	 * Find all.
	 * 
	 * @return the collection
	 */
	public Collection<AutoPart> findAll();

	/**
	 * Find by id.
	 * 
	 * @param id
	 *            the id
	 * @return the auto part
	 */
	public AutoPart findById(Long id);

	/**
	 * Creates the.
	 * 
	 * @param autoPart
	 *            the auto part
	 * @return the long
	 */
	public Long create(AutoPart autoPart);

	/**
	 * Update.
	 * 
	 * @param autoPart
	 *            the auto part
	 */
	public void update(AutoPart autoPart);

	/**
	 * Delete.
	 * 
	 * @param autoPart
	 *            the auto part
	 */
	public void delete(AutoPart autoPart);

	/**
	 * Delete.
	 * 
	 * @param id
	 *            the id
	 */
	public void delete(Long id);

}
